package org.graduation.recruitment.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.graduation.recruitment.entity.dto.DTO;

import java.util.Date;

/**
 * 企业用户
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnterpriseUser extends User implements DTO {
    private static final String USER_TYPE = "ENTERPRISE";
    private String name;
    private String email;
    private String address;
    /**
     * 统一社会信用代码
     */
    private String unifiedSocialCreditCode;
    private String phone;
    /**
     * 邮政编码
     */
    @TableField(value = "EMS_code")
    private String EMSCode;
    /**
     * 所属行业
     */
    private String industryAffiliation;
    /**
     * 企业类型：私企、国企...
     */
    private String enterpriseType;
    /**
     * 成立时间
     */
    private Date createdDate;
    /**
     * 企业联系人
     */
    private String contactPerson;
    /**
     * 企业详情
     */
    private String description;

    @Override
    public String getUserType() {
        return USER_TYPE;
    }
}
